package functional_programming;

import java.util.function.Function;

public class Curry3Args {


    public static void main(String[] args) {
        Function<String, Function<String, Function<String, String>>> fun3c
                = a -> b -> c -> a + b + c;

        Function<String, Function<String, String>> fun2 = fun3c.apply("Hi ");
        Function<String, String> hello = fun2.apply("hello ");
        System.out.println(hello.apply("end"));
    }
}
